package com.yunpeng.aidevice.dao.model.relation;

import com.yunpeng.aidevice.dao.model.BaseRelationDO;

import java.util.Date;

/**
 * <p>
 * 用户权限
 * </p>
 *
 * @author hemw
 * @since 2020-04-07
 */
public class UserOwnPermissionDO extends BaseRelationDO {

    private static final long serialVersionUID = 1L;

    /**
     * 用户代码
     */

    private String userCode;

    /**
     * 用户名称
     */
    private String userName;

    /**
     * 权限代码
     */

    private String permissionCode;

    /**
     * 权限名称
     */
    private String permissionName;

    /**
     * 生效日期
     */

    private Date startDate;

    /**
     * 截止日期
     */

    private Date endDate;

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPermissionCode() {
        return permissionCode;
    }

    public void setPermissionCode(String permissionCode) {
        this.permissionCode = permissionCode;
    }

    public String getPermissionName() {
        return permissionName;
    }

    public void setPermissionName(String permissionName) {
        this.permissionName = permissionName;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    @Override
    public String toString() {
        return "UserOwnPermissionDO{" +
                "id=" + id +
                ", creator=" + creator +
                ", createTime=" + createTime +
                ", updater=" + updater +
                ", updateTime=" + updateTime +
                ", flag=" + flag +
                ", userCode=" + userCode +
                ", userName=" + userName +
                ", permissionCode=" + permissionCode +
                ", permissionName=" + permissionName +
                ", startDate=" + startDate +
                ", endDate=" + endDate +
                "}";
    }
}
